﻿using Microsoft.EntityFrameworkCore;
using Volo.Abp.Data;
using Volo.Abp.DependencyInjection;
using Volo.Abp.EntityFrameworkCore;
using youzackcom.Model;

namespace youzackcom.EntityFrameworkCore;


[ConnectionStringName("Default")]
public class youzackcomDbContext :
    AbpDbContext<youzackcomDbContext>
{

    public DbSet<T_User> t_Users { get; set; }

    public DbSet<PermissionGrants> permissionGrants { get; set; }

    public DbSet<Permission> permissions { get; set; }

    public youzackcomDbContext(DbContextOptions<youzackcomDbContext> options)
        : base(options)
    {

    }

    protected override void OnModelCreating(ModelBuilder builder)
    {
        base.OnModelCreating(builder);

        builder.ApplyConfigurationsFromAssembly(this.GetType().Assembly);
    }
}
